
#ifndef HISTORYDIALOG_H
#define HISTORYDIALOG_H

#include <BButton>
#include <BListWidget>
#include <BDialog>

using namespace BWE;

class HistoryDialog : public BDialog
{
	BOBJECT(HistoryDialog)
public:
	HistoryDialog(BWidget* parent = 0);
	~HistoryDialog();

	bool empty() const;

protected:
	void slotFileOpened(BObject* object, const BValue& value);
	void slotRemoveButtonClicked(BObject* object, const BValue& value);
	void slotListItemSelected(BObject* object, const BValue& value);
	void slotListItemDoubleClicked(BObject* object, const BValue& value);
	void slotListWidgetResized(BObject* object, const BValue& value);
	void slotQuitButtonClicked(BObject* object, const BValue& value);
	void slotOpenButtonClicked(BObject* object, const BValue& value);
	void slotCancelButtonClicked(BObject* object, const BValue& value);

protected:
	virtual void showEvent(const BEvent& event);

	virtual void styleEvent(const BEvent& event);

private:
	BButton*		_removeButton;
	BListWidget*	_listWidget;
	BButton*		_quitButton;
	BButton*		_openButton;
	BButton*		_cancelButton;

	BString			_fileName;
};

#endif
